<?
$time_start = microtime(true);

session_start();

include("conf.inc.php");
include("functions.php");

dbConnect();

// Automatinloggning
if(!isset($_SESSION['medlemId']) && isset($_COOKIE['login'])) {
	list($id, $passHash) = explode("@", $_COOKIE['login']);
	
	$sSql = "SELECT * FROM tblMedlemmar WHERE id = '" . $id . "' AND passHash = '" . $passHash . "'";
	$result = mysql_query($sSql) or die(mysql_error());
	
	if($row = mysql_fetch_array($result)) {
		$_SESSION['medlemId'] = $row['id'];
		
		$sSql = "UPDATE tblMembers SET 
				inloggningar = inloggningar + 1, 
				inloggad = NOW() 
				WHERE id = '" . $_SESSION['medlemId'] . "' ";
		mysql_query($sSql);
	}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jongleringsoasen.se | Sveriges största jongleringshemsida</title>
<link rel="stylesheet" type="text/css" href="/style.css">
<script type="text/javascript" src="/javascript.js"></script>
</head>

<body>

<table cellpadding="0" cellspacing="0" border="0" align="center" bgcolor="#FFFFFF">
  <tr>
  	<td width="30">&nbsp;</td>
  	<td width="170" valign="top"><? include("menuleft.php"); ?></td>
    <td width="30">&nbsp;</td>
    <td width="450" valign="top" style="padding-top: 20px;">